package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaFinancePayment;
import com.ruoyi.oa.domain.vo.OaFinancePaymentVo;
import com.ruoyi.oa.domain.bo.OaFinancePaymentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.oa.domain.vo.OaProjectVo;

import java.util.Collection;
import java.util.List;

/**
 * 付款流程Service接口
 *
 * @author ruoyi
 * @date 2023-05-23
 */
public interface IOaFinancePaymentService {

    /**
     * 查询付款流程
     */
    OaFinancePaymentVo queryById(String id);

    /**
     * 查询付款流程列表
     */
    TableDataInfo<OaFinancePaymentVo> queryPageList(OaFinancePaymentBo bo, PageQuery pageQuery);

    /**
     * 查询付款流程列表
     */
    List<OaFinancePaymentVo> queryList(OaFinancePaymentBo bo);

    /**
     * 新增付款流程
     */
    OaFinancePaymentBo insertByBo(OaFinancePaymentBo bo);

    /**
     * 修改付款流程
     */
    OaFinancePayment updateByBo(OaFinancePaymentBo bo);

    /**
     * 校验并批量删除付款流程信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);


    /**
     * 获取没有采购流程的项目信息
     * @return
     */
    List<OaProjectVo> getProjectList();


    public OaFinancePaymentVo queryByProjectName(String projectName);
}
